package com.example.starter.properties;

import lombok.*;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Created by caorl on 2020/9/21.
 */
@ConfigurationProperties(prefix = "student")
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class StudentProperties {

    private String name = "defaultName";

    private Integer age = 18;
}
